<?php
/**
 * Class Site
 */

namespace App\Models;

use App\Models\base\SiteBase;

/**
 * App\Models\Site
 *
 * @property int $site_id
 * @property int|null $admin_user_id
 * @property string|null $web_site_url
 * @property string|null $site_name
 * @property int|null $notice_template_id 通知模版
 * @property int|null $is_verif_return 是否验证
 * @property int|null $time 执行的时间
 * @property int|null $method 方法
 * @property int|null $error_num 错误次数
 * @property string|null $return_content
 * @property string|null $updated_at
 * @property string|null $deleted_at
 * @property string|null $created_at
 * @property string|null $next_perform_time
 * @property NoticeTemplate $notice_template
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site whereAdmiUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site whereIsVerifReturn($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site whereNoticeTemplateId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site whereReturnContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site whereSiteId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site whereSiteName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Site whereWebSiteUrl($value)
 * @mixin \Eloquent
 */
class Site extends SiteBase
{
    public function notice_template(){
        return $this->hasOne(NoticeTemplate::class,'notice_template_id','notice_template_id');
    }
}
